#include "api.h"
#include <iostream>

int C::cnt = 0;

C::C() : num(0) { 
    cout << "calling constructor C()..."  << endl;
    cnt++;
}

ostream& operator<<(ostream &out, const C& c) {
    out << c.num << endl;
    return out;
}
